package com.example.qixin0314.Nat;

import com.example.qixin0314.Nat.company.StarkRequest;
import com.example.qixin0314.Nat.company.StarkValues;
import com.example.qixin0314.Nat.company.companyBean;
import com.example.qixin0314.Nat.company.companyValues;
import com.example.qixin0314.Nat.homenewsdata.Values3;
import com.example.qixin0314.Nat.homenewsdata.homenewsdata;
import com.example.qixin0314.Nat.newsData.Values1;
import com.example.qixin0314.Nat.newsData.newdata;
import com.example.qixin0314.Nat.newsimage.NewsData;
import com.example.qixin0314.Nat.newsimage.Values;
import com.example.qixin0314.Nat.pictureModelData.ValuesP;
import com.example.qixin0314.Nat.pictureModelData.picturebine;
import com.example.qixin0314.Nat.selectCompany.Values4;
import com.example.qixin0314.Nat.selectCompany.selectCompany;
import com.example.qixin0314.Nat.titleModelData.Responsedata;
import com.example.qixin0314.Nat.titleModelData.ValuesBody;


import okhttp3.ResponseBody;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;


public interface HttpbinService {
    @GET("/index/huanyihuan")//热搜文字
    Call<Responsedata<ValuesBody>>recycleText(@Query("client")String client);

    @GET("/index/index-brand")//热搜图片
    Call<picturebine<ValuesP>>recyclePicture();

    @GET("/index/news-hot")//轮播图
    Call<NewsData<Values>>Picture();

    @GET("/index/news")//新闻列表
    Call<newdata<Values1>>news(@Query("page")int page);
    @GET("/index/brand")//公司列表
    Call<companyBean<companyValues>> company ();
    @GET("/index/index")//首页底部列表
    Call<homenewsdata<Values3>>homenews();
    @GET("/index/search")//搜索
    Call<selectCompany<Values4>>SelectCompany(@Query("key")String name);
    @GET("/user/login")//登录
    Call<ResponseBody>login(@Query("mobile")String phone,@Query("pwd")String pwd);
    @GET("/index/brand?")// sort排序参数    ssdq_code地区参数   hylb_code行业参数  page页数
    Call<StarkRequest<StarkValues>>getStarkAllParameter(
            @Query("sort") String sort,
            @Query("ssdq_code") int ssdq_code,
            @Query("hylb_code") int hylb_code,
            @Query("page") int page);
}
